﻿using System.Web.Mvc;
using P7DC.Web.Common.Logger;

namespace P7DC.Web.Controllers
{
	/// <summary>
	/// Manage Elmah
	/// </summary>
	// [Authorize(Users = "Admin")] - making log secure
	public partial class ElmahController : Controller
	{
		/// <summary>
		/// Show default exceptions list
		/// </summary>
		/// <param name="type">Resouce type</param>
		/// <returns>Show exceptions list page</returns>
		public virtual ActionResult Index(string type)
		{
			return new ElmahResult(type);
		}
	}
}
